
					
 export let timeTrans=  function (time, type){
  let date = new Date(new Date(time).getTime() + 8 * 3600 * 1000)
  date = date.toJSON();
  if (type===1){
    date = date.substring(0, 10)
  }
  else {
    date = date.substring(0, 19).replace('T', ' ')
  }
  return date

}